package org.biubiu0002.baiblog.core.api;

import com.google.common.base.Preconditions;
import org.apache.commons.lang3.StringUtils;
import org.apache.dubbo.config.annotation.DubboService;
import org.biubiu0002.baiblog.core.service.GroupUserService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: biubiu0002
 * @Date: 2022/12/21 16:06
 **/
@DubboService
public class GroupUserApiServiceImpl implements GroupUserApiService{

    @Resource
    private GroupUserService groupUserService;

    @Override
    public List<String> getGroupUserUidList(String groupUid) {
        Preconditions.checkArgument(StringUtils.isNotBlank(groupUid),"群组id不能为空");
        return groupUserService.getGroupUserUidList(groupUid);
    }
}
